
package net.vinote.smart.platform.service.action;

import java.sql.SQLException;

import net.vinote.smart.platform.module.database.DBManager;
import net.vinote.smart.platform.module.database.DBManagerFactory;
import net.vinote.smart.platform.module.database.bo.BizObject;


public class ProductItemAction
{
	public String getProductName(String productNo)
	{
		DBManager bm = DBManagerFactory.getInstance("product_item");
		BizObject bo;
		try
		{
			bo = bm.createQuery(new String[]
			{
				"ProductName"
			}, "productNo=?").setParamVal(productNo).getSingleResult();
			if (bo != null)
			{
				return bo.getAttribute("ProductName");
			}
		}
		catch (SQLException e)
		{
			e.printStackTrace();
		}
		return "";
	}
}
